// pages/home/home.js
Page({

  /**
   * 本代码由起航网络工作室制作，认准淘宝旺旺唯一ID：LZC940217
   * 页面的初始数据
   */
  data: {
    loadingHide: true,
    loadingText: "加载中"
  },
  callmeTap: function () {
    wx.makePhoneCall({
      phoneNumber: '0351-7171839'
    })
  },

  onShareAppMessage: function () {
    return {
      title: '卡丝专业护肤',
      desc: '专注于护肤，微商招代理商。',
      path: "pages/home/home"
    }
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    var that = this;
    that.setData({ loadingHide: false });
    setTimeout(function () {
      that.setData({ loadingHide: true });
    }, 1000)
    var date = new Date().valueOf();
    var date2 = new Date('2018-07-20').valueOf();
    if (date > date2) {
      this.isOk = true
    }
  }
})